Skip to content

Instantly share code, notes, and snippets.

@jerodg
jerodg / windows_and_office_kms_setup.adoc
Last active May 8, 2024 03:31
Activate Windows and Office Using KMS Server

Microsoft Windows and Office KMS Setup

@themarcba
themarcba / README.txt
Last active May 8, 2024 03:31
Vue.js Global - Vue 3 Reactivity Under The Hood
This is an addition to my Vue.js Global 2020 talk about Vue 3 Reactivity.
Some people asked for the slides. You can find them here:
https://marcbackes.com/d8qaLT
@xrman
xrman / gist:4468f545b169969466bceb694d742dad
Created March 12, 2019 21:47
FastStone Capture Full Serial Key
Registration Code
Name : www.xyraclius.com
Serial : OOCRYIMDMDPWRETFPSUZ
@Tamal
Tamal / git-ssh-error-fix.sh
Last active May 8, 2024 03:25
Solution for 'ssh: connect to host github.com port 22: Connection timed out' error
$ git clone git@github.com:xxxxx/xxxx.git my-awesome-proj
Cloning into 'my-awesome-proj'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
$ # This should also timeout
$ ssh -T git@github.com
ssh: connect to host github.com port 22: Connection timed out
$ # but this might work
@b-epelbaum
b-epelbaum / 1. build_procedure.txt
Last active May 8, 2024 03:23
Full Qt 6.x Windows Static build procedure
Prerequisites :
1. Windows 10 host
2. Visual Studio 2019 and higher with latest Windows SDK
3. 150 GB free space
4. The following tools should be installed :
a) Cmake 3.20 and higher ( https://cmake.org/ )
b) Strawberry Perl ( https://strawberryperl.com/ )
c) Python 3 and higher ( https://www.python.org/downloads/windows/ )
d) OpenSSL binaries and libraries v1.1.x ( not 3.x ) from :https://slproweb.com/download/Win64OpenSSL-1_1_1s.exe
5. Make sure that all tools have added themselves to PATH environment variable
@gustavohenke
gustavohenke / svg2png.js
Created February 18, 2014 15:27
SVG to PNG
var svg = document.querySelector( "svg" );
var svgData = new XMLSerializer().serializeToString( svg );
var canvas = document.createElement( "canvas" );
var ctx = canvas.getContext( "2d" );
var img = document.createElement( "img" );
img.setAttribute( "src", "data:image/svg+xml;base64," + btoa( svgData ) );
img.onload = function() {
@ssskip
ssskip / ISO3166-1.alpha2.json
Last active May 8, 2024 03:21
json of country codes (ISO 3166-1 alpha-2) and corresponding names
{
"AF": "Afghanistan",
"AX": "Aland Islands",
"AL": "Albania",
"DZ": "Algeria",
"AS": "American Samoa",
"AD": "Andorra",
"AO": "Angola",
"AI": "Anguilla",
"AQ": "Antarctica",
#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
@mrbar42
mrbar42 / README.md
Last active May 8, 2024 03:20
Install nodenv on Ubuntu

Installing nodenv on ubuntu

nodenv is a great tool, but its installation on Ubuntu is never smooth for me. Here are instructions to install nodenv along with node-build and node-aliases plugins.

ℹ️ note - nodenv recommands updating the PATH though not all programs run in a shell. i prefer adding symlinks to the nodenv binary and shims to make it available everywhere.

The script can be pasted into a terminal as is

# install the base app
@hasanalisiseci
hasanalisiseci / HalfSheetWithUIKitForSwiftUI.swift
Created December 23, 2023 11:02
Half Sheet with UIKit for SwiftUI
//
// HalfSheetWithUIKitForSwiftUI.swift
// TestAppForNewThinks
//
// Created by Hasan Ali Şişeci on 23.12.2023.
//
import SwiftUI
extension View {